package com.start.client.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.start.client.app.entity.ClientAppVersionEntity;
import com.start.client.app.enums.StartAppClientVersionType;
import com.start.client.app.vo.AppVersionResult;
import com.start.client.app.vo.ClientClientAppInfo;

import java.util.List;

/**
 * APP 客户端版本管理
 *
 * @author gxl
 * @email ${email}
 * @date 2021-03-09 21:14:56
 */
public interface ClientAppVersionService extends IService<ClientAppVersionEntity> {


    /**
     * app 检查更新
     * @param appInfo
     * @return
     */
    AppVersionResult checkAppUpdate2(ClientClientAppInfo appInfo);

    ClientAppVersionEntity getOneByAppMangerIdAndVersionCode(String appManagerId, Integer versionCode,StartAppClientVersionType versionType);

    /**
     * 获取最新的一个全量版本
     *
     * @param appManagerId
     * @param versionType
     * @return
     */
    ClientAppVersionEntity getMaxOneByFullVersion(String appManagerId, StartAppClientVersionType versionType);


    List<ClientAppVersionEntity> listFullVersionByAppManagerId(String appManagerId);
}

